package com.tdkj.action.backstage.shop;

import java.util.List;

import javax.annotation.Resource;

import com.opensymphony.xwork2.ActionSupport;
import com.tdkj.model.shop.BeanShopRecommendationType;
import com.tdkj.service.shop.IBeanShopRecommendationTypeService;

public class ShopRecommendationTypeAction extends ActionSupport {

	private IBeanShopRecommendationTypeService shopRecommendationTypeService ;

	/**
	 * @param shopRecommendationService the shopRecommendationService to set
	 */
	@Resource
	public void setShopRecommendationTypeService(
			IBeanShopRecommendationTypeService shopRecommendationTypeService) {
		this.shopRecommendationTypeService = shopRecommendationTypeService;
	}
	
	private List<BeanShopRecommendationType> types;
	
	public String execute(){
		
		types = shopRecommendationTypeService.getAll();
		
		return "success";
	}
	
	/**
	 * @return the types
	 */
	public List<BeanShopRecommendationType> getTypes() {
		return types;
	}

	/**
	 * @param types the types to set
	 */
	public void setTypes(List<BeanShopRecommendationType> types) {
		this.types = types;
	}

	
}
